{"version":3,"sources":["marketplace.js"],"names":["BX","namespace","rest","Marketplace","ajaxPath","query","action","data","callback","sessid","bitrix_sessid","ajax","dataType","method","url","onsuccess","onfailure","error_type","error","queryInstall","params","queryParam","code","CODE","VERSION","version","CHECK_HASH","check_hash","install_hash","INSTALL_HASH","FROM","from","delegate","result","isDoNothing","hasOwnProperty","helperCode","top","UI","InfoHelper","show","errorDom","errorMessage","error_description","innerHTML","Notification","Center","notify","content","redirect","location","href","IFRAME","util","remove_url_param","installed","eventResult","onCustomEvent","open","SidePanel","Instance","reload","AppLayout","openApplication","id","this","install","SILENT_INSTALL","installPopup","indexOf","loaded","popup","PopupWindowManager","create","autoHide","zIndex","offsetLeft","offsetTop","overlay","draggable","restrict","closeByEsc","closeIcon","right","buttons","button","PopupWindowButton","text","message","className","events","click","checked","hasClass","buttonNode","addClass","PopupWindowButtonLink","popupWindow","close","onAfterPopupShow","processData","prepareData","res","parseJSON","type","isPlainObject","setContent","setTitleBar","defer","adjustPosition","uninstallConfirm","analyticsFrom","PopupWindow","uninstall","setButtons","sliderUrl","window","clean","reinstall","buy","bindElement","priceList","menu","i","length","push","TEXT","LINK","target","PopupMenu","angle","buySubscription","btn","canBuySubscription","canActivateDemoSubscription","openBuySubscription","openDemoSubscription","bind","oPopup","props","children","html","replace","titleBar","lightShadow","btnConfirm","Button","color","Color","SUCCESS","state","State","DISABLED","onclick","setState","WAITING","ACTIVE","isFunction","slider","getTopSlider","popupDemo","style","attrs","name","value","change","event","for","setRights","appId","siteId","Access","Init","other","disabled","disabled_g2","disabled_cr","groups","socnetgroups","p","app_id","site_id","SetSelected","ShowForm","showSelected","arRights","rights","placementConfig","category","PLACEMENT","add_url_param","placement","rule","getUrlRule","options","addCustomEvent","bindPageAnchors","param","ready","bindAnchors","clone","rules","condition","cacheable","allowChangeHistory"],"mappings":"AAAAA,GAAGC,UAAU,uBAEbD,GAAGE,KAAKC,YAAc,WAErB,IAAIC,EAAW,yBAEf,IAAIC,EAAQ,SAASC,E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